package com.monolithiot.sso.dao.mapper;

import com.monolithiot.sso.common.entity.UserGroup;
import com.monolithiot.sso.dao.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 2018/12/30 Create by 郭文梁
 * UserGroupMapper
 * 用户是实体映射
 *
 * @author 郭文梁
 * @date 2018/12/30
 */
@Repository
public interface UserGroupMapper extends BaseMapper<UserGroup> {
    /**
     * 根据群组名称或者群组号码搜索群组
     *
     * @param name   名称
     * @param number 号码
     * @return Group List
     */
    List<UserGroup> selectByNumberOrLikeName(@Param("name") String name, @Param("number") String number);
}
